<template>
  <div>
    <vxe-modal
      @confirm="succesHandler"
      v-model="showMsg"
      type="confirm"
      showFooter
      size="small"
      title="提示"
      :content="content"
      className="common-dialog-rest"
      width="384"
      height="228"
    />
  </div>
</template>

<script lang="ts" setup>
const showMsg = ref(false)
const content = ref('')
let succesHandler = () => {}
const openMsgEvent = ({ msg, success }) => {
  content.value = msg
  succesHandler = success
  showMsg.value = true
}

defineExpose({ openMsgEvent })
</script>
